package com.ryzx.log.collector;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
注入RequestLogHandler 、ServiceLogHandler 请求日志处理组件
 */
@Slf4j
@Configuration
public class LogHandlerConfig {
    @Bean
    public ControllerLogHandler requestLogHandler() {
        log.info("RequestLogHandler component init");
        return new ControllerLogHandler();
    }
    @Bean
    public ServiceLogHandler serviceLogHandler() {
        log.info("ServiceLogHandler component init");
        return new ServiceLogHandler();
    }
}
